#@layout()

#define content()

<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'center',border:true">
        <div id="datagridId"></div>

        <div id="datagridTb">
            <div class="row">
                <div class="col-md-12">
                    <form id="searchForm">

                    </form>
                </div>
            </div>
        </div>
    </div>


</div>

#end


#define css()

#end


#define js()

<script type="text/javascript">

    var _datagrid = "datagridId", _form = "formId", _datagridTb = "datagridTb";
    var datagridListUrl = contextRootPath + '/dataStatistics/getCertUseCase';

    $(function () {
        //初始化表格
        $("#" + _datagrid).datagrid({
            url: datagridListUrl,
            fit: true,
            border: false,
            rownumbers: true,
            pageSize: 20,
            toolbar: '#' + _datagridTb,
            singleSelect: false,
            pagination: true,
            nowrap: false,
            striped: true,
            fitColumns: true,
            columns: [[
                {
                    field: DBConts.TABLE_DATA_STATISTICS.INST_CODE,
                    title: "机构号",
                    sortable: false
                },
                {
                    field: "dict_text",
                    title: "手机盾种类",
                    sortable: false,
                    formatter: function (value, row, index) {
                        var dict_text = row.dict_text;
                        var result;
                        if (dict_text === 'SE') {
                            result = "<span>专业版</span>";
                        }
                        if (dict_text === 'TEE'){
                            result = "<span>标准版</span>";
                        }
                        return result;
                    }
                },
                {
                    field: DBConts.TABLE_DATA_STATISTICS.AAID,
                    title: "认证器标识",
                    sortable: false
                },
                {
                    field: "use_count",
                    title: "数量",
                    sortable: false
                }
            ]]
        });
    });

</script>

#end



